package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.OrderAddress;
import com.yunshang.shoppingmall.mapper.OrderAddressMapper;
import com.yunshang.shoppingmall.service.OrderAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("OrderAddressService")
public class OrderAddressServiceImpl implements OrderAddressService {
    @Autowired
    OrderAddressMapper orderAddressMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return orderAddressMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OrderAddress record) {
        return orderAddressMapper.insert(record);
    }

    @Override
    public int insertSelective(OrderAddress record) {
        return orderAddressMapper.insertSelective(record);
    }

    @Override
    public OrderAddress selectByPrimaryKey(Integer id) {
        return orderAddressMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderAddress record) {
        return orderAddressMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderAddress record) {
        return orderAddressMapper.updateByPrimaryKey(record);
    }

    @Override
    public OrderAddress selectByOrderAddress(OrderAddress record) {
        return orderAddressMapper.selectByOrderAddress(record);
    }


}
